<?php defined('InShopNC') or exit('Access Invalid!');?>

<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3><?php echo $lang['channels_index'];?></h3>
      <?php echo $output['top_link'];?>
    </div>
  </div>
  <div class="fixed-empty"></div>
   <table class="table tb-type2" id="prompt">
    <tbody>
      <tr class="space odd">
        <th class="nobg" colspan="12"><div class="title"><h5><?php echo $lang['nc_prompts'];?></h5><span class="arrow"></span></div></th>
      </tr>
      <tr>
        <td>
        <ul>
            <li>频道列表由程序按名称排序，即数字、字母、汉字顺序。</li>
            <li>可修改频道的颜色风格、启用状态。</li>
            <li>开启中的频道不能删除，删除频道时不删除所属模块（为了方便数据操作，一个模块可以同时在多个频道中显示）。</li>
          </ul></td>
      </tr>
    </tbody>
  </table>
  <form method='post'>
    <input type="hidden" name="form_submit" value="ok" />
    <input type="hidden" name="submit_type" id="submit_type" value="" />
    <table class="table tb-type2">
      <thead>
        <tr class="thead">
          <th></th>
          <th>操作</th>
          <th>频道名称</th>
          <th>页面颜色</th>
          <th>绑定分类</th>
          <th>启用状态</th>

        </tr>
      </thead>
      <tbody>
        <?php if(!empty($output['channels_list']) && is_array($output['channels_list'])){ ?>
        <?php foreach($output['channels_list'] as $k => $v){ ?>
        <tr class="hover edit">
        <td></td>
        <td>查看 |
          <a href="index.php?act=channels&op=channels_edit&cs_id=<?php echo $v['channels_id'];?>">基本设置</a> |
          <a href="index.php?act=channels&op=set_channels&cs_id=<?php echo $v['channels_id'];?>">编辑模块 </a></td>
          <td><?php echo $v['channels_name']; ?></td>
          <td><?php echo $v['channels_view_color']; ?></td>
          <td><?php echo $v['channels_bing_class']; ?></td>
          <td><?php echo $v['channels_status']; ?></td>
        </tr>
        <?php } ?>
        <?php }else { ?>
        <tr class="no_data">
          <td colspan="10"><?php echo $lang['nc_no_record'];?></td>
        </tr>
        <?php } ?>
      </tbody>
    </table>
  </form>
</div>
